<!DOCTYPE html>
<html>
 <head>
  <meta charset="UTF-8">
  <title></title>
  <script src="js/jquery-3.6.0.js" type="text/javascript" charset="utf-8"></script>
  <style type="text/css">
   div{
    border: 1px solid red;
    width: 400px;
    height: 400px;
    background-repeat:no-repeat;
   }
   
  </style>
 </head>
 <body>
  <button class="1">选项1</button>
  <button class="2">选项2</button>
  <button class="3">选项3</button>
  <button class="4">选项4</button>
  
  <div class="jy">
  </div>
 </body>
 <script type="text/javascript">
  $(document).ready(function(){
   $("button.1").click(function(){
    $(".jy").css({"background-image":"url(img/1.jpg)","background-size":"100% 100%"});
   });
  })
  $(document).ready(function(){
   $("button.2").click(function(){
    $(".jy").css({"background-image":"url(img/2.jpg)","background-size":"100% 100%"});
   });
  })
  $(document).ready(function(){
   $("button.3").click(function(){
    $(".jy").css({"background-image":"url(img/3.jpg)","background-size":"100% 100%"});
   });
  })
  $(document).ready(function(){
   $("button.4").click(function(){
    $(".jy").css({"background-image":"url(img/4.jpg)","background-size":"100% 100%"});
   });
  })
 
  
 </script>
</html>